package cdu.javaendwork.model.sqlModel;

import java.util.Date;

public class Remark {
    private int id;
    private int userid;
    private int postid;
    private String content;
    private Date date;

    public Remark() {
    }

    public Remark(int id, int userid, int postid, String content, Date date) {
        this.id = id;
        this.userid = userid;
        this.postid = postid;
        this.content = content;
        this.date = date;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getPostid() {
        return postid;
    }

    public void setPostid(int postid) {
        this.postid = postid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "Remark{" +
                "id=" + id +
                ", userid=" + userid +
                ", postid=" + postid +
                ", content='" + content + '\'' +
                ", date=" + date +
                '}';
    }
}
